package com.kaussoft.lolblog.action;

import com.kaussoft.lolblog.vo.Account;
import com.opensymphony.xwork.ModelDriven;

public class AdduserAction extends AbstractAction implements ModelDriven {

	private static final long serialVersionUID = 1L;
	private Account account = new Account();

	public String execute() throws Exception {
		if (getServiceManager().saveAccount(account)) {
			return SUCCESS;
		}
		return INPUT;
	}

	public Object getModel() {
		return account;
	}
}
